export interface AxiosResponse<T = any> {
  Code: number;
  Data: T;
  Message: string;
  Mes?: string;
  type?: string;
  Count?: number;
  PageCount?: number;
  Page?: number;
  [key: string]: T | number | string | undefined;
}

// 部门列表返回值
export interface IFrameworkUser {
  Disabled: boolean;
  ParentId: string;
  Selected: boolean;
  Text: string;
  Value: string;
}

// 公司列表返回值
export interface ICompanyItem {
  Disabled: boolean;
  Selected: boolean;
  Text: string;
  Value: string;
}

// 通用请求返回值
export interface LuchResponse<T = any> {
  Code: number;
  Data: T;
  Message: string;
  type?: string;
  [key: string]: T | number | string | undefined;
}

// 分页通用请求返回值
export interface IPageResponse<T = any> {
  Code: number;
  Count: number;
  Data: T;
  Msg: string;
  Page: number;
  PageCount: number;
}

export interface IResult<T> {
  Code: number;
  Message: string;
  Data?: T;
}



export interface QueryTimeline {
  entitytype?: string;
  entityId?: string;
}

export interface WorkflowInfo {
  ActivityId: string;
  ApproveGroup: string;
  ApproveResult: string;
  ApproveTime: string;
  Approver: string;
  ApproverName: string;
  ApproverAvatar: string;
  ApproveComment?: string; // 审批评论，用于显示拒绝理由或同意理由
  ID: string;
  ModelId: string;
  ModelType: string;
  Step: number;
  WorkflowId: string;
  WorkflowName: string;
}

export interface ISysHrTransferRequestBill {
  Children: ISysHrTransferRequestBill[];
  Disabled: boolean;
  Expended: boolean;
  Icon: string;
  Id: string;
  Leaf: boolean;
  ParentId: string;
  Selected: boolean;
  Tag: string;
  Text: string;
  Url: string;
  Value: string;
}
